#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;


class Solution {
public:
    int sumNums(int n) {
        return n+0.5*n*(n-1);
    }
};